#!/bin/bash

echo "=== 手动配置 wxWidgets ==="

WX_DIR="D:/vc/wxWidgets-3.2.7"

echo "wxWidgets 目录: $WX_DIR"

# 检查关键文件是否存在
echo ""
echo "检查库文件:"
if [ -f "$WX_DIR/lib/libwx_mswu_adv-3.2.dll.a" ]; then
    echo "✅ libwx_mswu_adv-3.2.dll.a 存在"
else
    echo "❌ libwx_mswu_adv-3.2.dll.a 不存在"
fi

if [ -f "$WX_DIR/lib/libwxscintilla-3.2.a" ]; then
    echo "✅ libwxscintilla-3.2.a 存在"
else
    echo "❌ libwxscintilla-3.2.a 不存在"
fi

echo ""
echo "检查头文件:"
if [ -d "$WX_DIR/include" ]; then
    echo "✅ include 目录存在"
    ls "$WX_DIR/include/" | head -5
else
    echo "❌ include 目录不存在"
fi

echo ""
echo "推荐的编译器标志:"
echo "-I$WX_DIR/include -I$WX_DIR/include/msys -D__WXMSW__ -DwxUSE_UNICODE"

echo ""
echo "推荐的链接器标志:"
echo "-L$WX_DIR/lib -lwx_mswu_adv-3.2 -lwxscintilla-3.2"
